package com.hn.dao;

import com.hn.mapper.BanjiMapper;
import com.hn.pojo.Banji;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * @作者 : wangchangdian
 * @创建时间 : 2019/3/27 - 10:02
 */
@Repository("banjiDao")
public class BanjiDao {
    @Resource
    BanjiMapper banjiMapper;
    //添加班级
    public void addBanji(Banji banji){
        banjiMapper.addBanji(banji);
    }

    //查询班级表所有内容
   public List<Banji> findAllbanji(){

        return banjiMapper.findAllbanji();

    }
}
